Repository navigation
[ar-autolabel-followup] Document video Auto Label in the SDK and CLI - #585
Merged
Merged
Conversation
…and CLI
Project.autolabel, Workspace.autolabel_job, the rfapi helpers and the
'autolabel start' help now describe model="video-segment", the
{description: class} ontology, model_options={"sampleFps": n} and the
video progress fields. A CLI test locks the video request body so no
client-side catalog check blocks it.
…ating the video fields
…runcated video results
…deo in the auto-label docs
digaobarbosa
marked this pull request as ready for review
November 23, 2026 22:10
This was referenced Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
On the backend PR's ephemeral environment, at commit
455fde8, a video job started from the SDK and one started from the CLI both reacheddone:{sampleFps: 1, windowSeconds: 120, overlapSeconds: 15}The backend now starts video Auto Label through the same endpoint as image Auto Label. The SDK already sent such a request without changes, but nothing told you so. The model list does not include the video model, and every docstring and help text said "images". A person or an agent reading them had no way to learn the model name, the ontology direction or the frame-rate option.
The docstrings, the
autolabel starthelp, the CLI quickstart and the changelog now describe the video request: thevideo-segmentmodel, one action description per existing class, and{"sampleFps": n}. The job status docs list the video progress fields. The client adds no new option and no new check: the server stays the only judge of what a video request may contain.Depends on: roboflow/roboflow#19988. Video Auto Label works only after that backend change is deployed. Before that, the server answers
UNSUPPORTED_PROJECT_TYPE.Type of Change
Testing
Test details:
autolabel start -m video-segment --ontology ... --model-options '{"sampleFps": 2}'sends a body with onlybatchId,modelType,ontologyandmodelOptions. It locks that no client-side catalog check blocks the video model and that no image-only field leaks into the body.python -m unittest: 1282 tests OK, 1 skipped (Python 3.14, Linux).ruff format,ruff checkandmypy roboflowpass.455fde8, withAPI_URL=https://pr-19988-api.eph.roboflow.one(backend headd5f01d12d5c). Each job used a new batch with one freshly uploaded video, on an action-recognition project in the staging workspace.project.autolabel(batch, model="video-segment", ontology={"a car or a person moves across the frame": "moving"}, model_options={"sampleFps": 1})returnsjobIdandannotationJobId.workspace.autolabel_job(jobId)polled todonein 62 s, with every video field.project.autolabel_job(jobId)returns the same payload.roboflow autolabel start -p <project> --batch-id <batch> -m video-segment --ontology '...' --model-options '{"sampleFps": 1}'exits 0 with ajobId.roboflow autolabel job <jobId>polled todonein 64 s.--existing-annotations preserveprints the server's{"error": {"message": "Video Auto Label replaces existing segments"}}on stderr and exits 1.roboflow autolabel start --helpshows the video-segment and sampleFps help.ccce3b9changes only docstrings, help text and the changelog since455fde8. On it, the help output, the step 5 refusal and anautolabel jobread were run again against the same environment, and all pass.Final SDK job status (excerpt)
{ "status": "done", "modelType": "video-segment", "projectType": "action-recognition", "mediaType": "video", "classes": [{"name": "moving", "description": "a car or a person moves across the frame"}], "sampling": {"sampleFps": 1, "windowSeconds": 120, "overlapSeconds": 15}, "framesPlanned": 10, "framesSampled": 10, "numImages": 1, "videos": { "uwxhr2PZyQWCVaNjwGeG": { "status": "done", "windows": 1, "segments": 2, "framesSeen": 10, "preserved": false, "truncated": false, "windowsFailed": 0, "unanalysedIntervals": [] } } }Checklist